package com.liu.shopcar.feign;

import com.liu.shop.common.vo.GoodsVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 调用商品模块，根据id查询商品信息
 */
@FeignClient(name = "shop-goods",path = "/goods/goods")
public interface GoodsVoServices {
    @GetMapping("/getGoodsVoById/{id}")
    public GoodsVo getGoodsVoById(@PathVariable("id") Integer id);
}
